export const login = {
  name: 'login',
  path: '/login',
  component: () => import('@/views/Login.vue')
  // meta: { title: '登录' }
} // 后台登录

export const home = {
  name: 'home',
  path: '/home',
  redirect: '/welcome',
  component: () => import('@/views/Home.vue'),
  // meta: { title: '后台管理' },
  children: [
    {
      name: 'welcome',
      path: '/welcome',
      component: () => import('@/components/Welcome.vue')
    },
    {
      name: 'menus',
      path: '/menus',
      component: () => import('@/components/Menus.vue') // 超管菜单管理
    },
    {
      name: 'auths',
      path: '/auths',
      component: () => import('@/components/Auths.vue') // 权限管理
    },
    // {
    //   name: 'user',
    //   path: '/user',
    //   component: () => import('@/components/User.vue')
    // },
    {
      name: 'role',
      path: '/role',
      component: () => import('@/components/Role.vue') // 角色管理
    },
    {
      name: 'admins',
      path: '/admins',
      component: () => import('@/components/Admins.vue') // 管理员管理
    },
    {
      name: 'goodsunit',
      path: '/goodsunit',
      component: () => import('@/components/Goodsunit.vue') // 商品单位管理
    },
    {
      name: 'percent',
      path: '/percent',
      component: () => import('@/components/Percent.vue') // 反比设置
    },
    {
      name: 'ordertime',
      path: '/ordertime',
      component: () => import('@/components/Ordertime.vue') // 下单时间段
    },
    {
      name: 'banner',
      path: '/banner',
      component: () => import('@/components/Banner.vue') // 轮播图管理
    },
    {
      name: 'org',
      path: '/org',
      component: () => import('@/components/Org.vue') // 组织机构管理
    },
    {
      name: 'category',
      path: '/category',
      component: () => import('@/components/Category.vue') // 商品分类管理
    },
    {
      name: 'goods',
      path: '/goods',
      component: () => import('@/components/Goods.vue') // 商品列表管理
    },
    {
      name: 'goodstotal',
      path: '/goodstotal',
      component: () => import('@/components/Goodstotal.vue') // 商品销售统计管理
    },
    {
      name: 'goodsIn',
      path: '/goodsIn',
      component: () => import('@/components/GoodsIn.vue') // 商品销售统计管理
    },
    {
      name: 'boss',
      path: '/boss',
      component: () => import('@/components/Boss.vue') // 老板管理
    },
    {
      name: 'company',
      path: '/company',
      component: () => import('@/components/Company.vue') // 公司管理
    },
    {
      name: 'companydraw',
      path: '/companydraw',
      component: () => import('@/components/Companydraw.vue') // 公司划账
    },
    {
      name: 'agentdraw',
      path: '/agentdraw',
      component: () => import('@/components/Agentdraw.vue') // 代理商划账
    },
    {
      name: 'order',
      path: '/order',
      component: () => import('@/components/Order.vue') // 订单详情
    },
    {
      name: 'goodsreply',
      path: '/goodsreply',
      component: () => import('@/components/Goodsreply.vue') // 订单评价
    },
    {
      name: 'masterorder',
      path: '/masterorder',
      component: () => import('@/components/Masterorder.vue') // 主订单管理
    },
    {
      name: 'datatotal',
      path: '/datatotal',
      component: () => import('@/components/Datatotal.vue') // 数据统计
    },
    {
      name: 'orderstatistics',
      path: '/orderstatistics',
      component: () => import('@/components/Orderstatistics.vue') // 下单统计
    }
  ]
} // 后台主页面
